#-*- coding: utf-8 -*-

def searchKey(key):
    from bs4 import BeautifulSoup
    from zey.common.tools import conn
    url = 'http://www.baidu.com/baidu?wd=%s' % key
    content = conn.Http().send_get(url)
    soup = BeautifulSoup(content.text, "html.parser")
    node = soup.find_all('div', attrs={'class': 'container'})
    node.find_all('a')

if __name__ == "__main__":
    searchKey("123")